# 指定基础镜像
FROM anapsix/alpine-java
LABEL maintainer="2471835953@qq.com"
# 挂载到/tmp(集群共享,数据持久化)
VOLUME /tmp
# 将jar复制到容器的跟目录并且设置指定名称linux cp
ADD twelvet-server-dfs.jar twelvet-server-dfs.jar
# 端口号
EXPOSE 8083
# 启动容器时执行的命令
ENTRYPOINT ["java", "-DNACOS_HOST=127.0.0.1", "-DNACOS_PORT=8848", "-jar","/twelvet-server-dfs.jar"]
CMD ["java", "-Dfile.encoding=UTF-8","-Duser.timezone=GMT+8"]
RUN apk add -U tzdata && \
    cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
